<?php include $this->getViewFile('/common/Head'); ?>
<body class="J_scroll_fixed">
  <div class="wrap J_check_wrap">
     <?php include $this->getViewFile('/common/Nav') ?>

     <!-- 表单 -->
      <?php $objForm = $this->beginWidget( 'CActiveForm', array('id' => 'myform', 'method' => 'post', 'htmlOptions' => array('class' => 'J_ajaxForm'))); ?>

       <div class="h_a">基本属性</div>

       <div class="table_full">
         <table width="100%" class="table_form contentWrap">
              <tbody>

                <tr>
                  <th width="100"><?php echo $objForm->labelEx( $model, 'name' ) ?></th>
                  <td>
                    <?php echo $objForm->textField($model, 'name', array('class' => 'input length_6', 'placeholder' => '商品标题'));  ?>
                  </td>
                </tr>

                <tr>
                  <th width="100"><?php echo $objForm->labelEx( $model, 'img' ) ?></th>
                  <td>
                    <?php 
                    if(ACTION_NAME == 'edit'){
                      echo $objForm->textField($model, 'img', array('class' => 'input length_6', 'placeholder' => '图片路径')) . '<br/>';                        
                    }
                    ?>
                    <input name="img" type="file" id="img">
                  </td>
                </tr>

                <tr>
                  <th width="100"><?php echo $objForm->labelEx( $model, 'bm_img' ) ?></th>
                  <td>
                    <?php 
                    if(ACTION_NAME == 'edit'){
                      echo $objForm->textField($model, 'bm_img', array('class' => 'input length_6', 'placeholder' => '图片路径')) . '<br/>';                        
                    } 
                    ?>                    
                    <input name="bm_img" type="file" id="bm_img">
                  </td>
                </tr>


                <tr>
                  <th width="100"><?php echo $objForm->labelEx( $model, 'url' ) ?></th>
                  <td>
                    <?php echo $objForm->textField($model, 'url', array('class' => 'input length_6', 'placeholder' => 'url地址'));  ?>
                    <span>默认则留空</span>
                  </td>
                </tr>



                <tr>
                  <th><?php echo $objForm->labelEx( $model, 'remark' ) ?></th>
                  <td>
                    <?php echo $objForm->textArea($model, 'remark', array('class' => 'length_6', 'placeholder' => '备注'));  ?>
                  </td>
                </tr>

                <tr>
                  <th><?php echo $objForm->labelEx( $model, 'status' ) ?></th>
                  <td>
                    <?php echo $objForm->dropDownList($model, 'status', SpecialModel::getStatusHtmlList());  ?><span>状态为显示则是会在商家报名列表中显示此报名，不显示不会显示</span>
                  </td>                  
                </tr>

                <tr>
                  <th><?php echo $objForm->labelEx( $model, 'is_special' ) ?></th>
                  <td>
                    <?php echo $objForm->dropDownList($model, 'is_special', SpecialModel::setIsSpecialHmtlList());  ?><span>选择是属于专场则添加成功后报名表的记录中记录了这专场ID，不属于专场则记录为0</span>
                  </td>                  
                </tr>

                <tr>
                  <th width="100"><?php echo $objForm->labelEx( $model, 'listorder' ) ?></th>
                  <td>
                    <?php echo $objForm->textField($model, 'listorder', array('class' => 'input length_6', 'placeholder' => '排序'));  ?>
                  </td>
                </tr>

              </tbody>
         </table>
       </div>


       <!-- 确定按钮 -->
       <div class="">
          <div class="btn_wrap_pd">
            <button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">确认</button>
          </div>
       </div>

      <?php $this->endWidget(); ?>
  </div>

<script src="<?php echo $staticUrl; ?>statics/js/common.js"></script>
</body>
</html>